package com.czwj.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.czwj.dao.BudgetMainMapper;
import com.czwj.entities.BudgetMain;
import com.czwj.service.BudgetMainService;

@Service
public class BudgetMainServiceImpl implements BudgetMainService {
	@Resource
	BudgetMainMapper mapper;
	
	@Override
	public List<BudgetMain> searchbylevel3(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.searchbylevel3(map);
	}

	@Override
	public int countbylevel3(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.countbylevel3(map);
	}

	@Override
	public int update(BudgetMain budgetMain) {
		// TODO Auto-generated method stub
		return this.mapper.updateByPrimaryKeySelective(budgetMain);
	}

	@Override
	public int insert(BudgetMain budgetMain) {
		// TODO Auto-generated method stub
		return this.mapper.insertSelective(budgetMain);
	}

	@Override
	public int updateStatus(int id) {
		// TODO Auto-generated method stub
		return this.mapper.updateStatus(id);
	}

	@Override
	public BudgetMain selectByPrimaryKey(int id) {
		// TODO Auto-generated method stub
		return this.mapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateMoney(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.updateMoney(map);
	}

	@Override
	public List<BudgetMain> searchbylevel1(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.searchbylevel1(map);
	}

	@Override
	public int countbylevel1(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.countbylevel1(map);
	}

	@Override
	public List<BudgetMain> searchbylevel2(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.searchbylevel2(map);
	}

	@Override
	public int countbylevel2(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.countbylevel2(map);
	}

	@Override
	public int updateByPrimaryKeySelective(BudgetMain main) {
		// TODO Auto-generated method stub
		return this.mapper.updateByPrimaryKey(main);
	}

	@Override
	public List<BudgetMain> searchbylevel0(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.searchbylevel0(map);
	}

	@Override
	public int countbylevel0(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.countbylevel0(map);
	}

	/** 
	* 
	* @param id
	* @return
	* @see com.czwj.service.BudgetMainService#searchbyprojectitemid(int)
	*/
	@Override
	public BudgetMain searchbyprojectitemid(int id){
		// TODO Auto-generated method stub
		return this.mapper.searchbyprojectitemid(id);
	}

	/** 
	* 
	* @param id
	* @return
	* @see com.czwj.service.BudgetMainService#searchbyprojectitemchild(int)
	*/
	@Override
	public BudgetMain searchbyprojectitemchild(int id){
		// TODO Auto-generated method stub
		return this.mapper.searchbyprojectitemchild(id);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.BudgetMainService#searchbyprojectitem(java.util.Map)
	*/
	@Override
	public List<BudgetMain> searchbyprojectitem(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.searchbyprojectitem(map);
	}

}
